package com.epam.training.service.insurance;

import com.epam.training.domain.*;

import java.util.*;

import org.springframework.data.domain.Page;

public interface InsuranceService {
	List<Insurance> getAllInsurance();

	Page<Insurance> getAllInsurance(Integer pageNumber);

	void save(Insurance insurance);
	
	Insurance getById(Integer id);
	
	void delete(Integer id);
	
	void update(Insurance insurance, Integer id);
}
